OBJS_SERVER=tcp_server.o
OBJS_CLIENT=tcp_client.o
OBJS_NET_FCNTL=net_fcntl.o
OBJS_NET_SELECT=net_select.o
OBJS_SSL_SERVER=ssl_server.o
OBJS_SSL_CLIENT=ssl_client.o
OBJS_NET_EPOLL=net_epoll.o
CC=gcc
CFLAGS=-L/usr/local/lib -lssl -lcrypto

tcp_server : $(OBJS_SERVER)
	$(CC) $(OBJS_SERVER) -o ../out/tcp_server
	
tcp_client : $(OBJS_CLIENT)
	$(CC) $(OBJS_CLIENT) -o ../out/tcp_client 
	
net_fcntl : $(OBJS_NET_FCNTL)
	$(CC) $(OBJS_NET_FCNTL) -o ../out/net_fcntl
	
net_select : $(OBJS_NET_SELECT)
	$(CC) $(OBJS_NET_SELECT) -o ../out/net_select
	
ssl_server : $(OBJS_SSL_SERVER)
	$(CC) $(OBJS_SSL_SERVER) -o ../out/ssl_server $(CFLAGS)

ssl_client : $(OBJS_SSL_CLIENT)
	$(CC) $(OBJS_SSL_CLIENT) -o ../out/ssl_client $(CFLAGS)
    
net_epoll : $(OBJS_NET_EPOLL)
	$(CC) $(OBJS_NET_EPOLL) -o ../out/net_epoll
clean:
	rm -f *.o


